/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询
export const getList = (params) => axios.post(`${SERVER.RETAIL}/ttVsDeliveryOrder/listRecordSfdc`, params)
// 详情查询
export const getDetail = (params) => axios.get(`${SERVER.RETAIL}/ttVsDeliveryOrder/getById`, {
  params
})
// 保存
export const postSave = (params) => axios.post(`${SERVER.RETAIL}/ttVsDeliveryOrder/editSfdc`, params)
// 批量入库
export const BatchStorage = (params) => axios.post(`${SERVER.RETAIL}/ttVsDeliveryOrder/batchStorageSfdc`, params)
// 仓库选择列表
export const getStorageList = (params) => axios.get(`${SERVER.RETAIL}/ttVsDeliveryOrder/getWarehouseList`, {
  params
})
// 导出
export const exportStorage = (params) => axios.post(`${SERVER.RETAIL}/ttVsDeliveryOrder/export`, params, {
  responseType: 'blob'
})
//删除APP订单号
export const delAppOrderNo = (params) => axios.post(`${SERVER.RETAIL}/ttVsDeliveryOrder/updateAppOrderNo2Null`, params)
